package com.sniff.atp.enums.api;

import com.sniff.atp.constant.config.SniffHost;
import lombok.Getter;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.enums.api
 * @Author: zxy
 * @CreateTime: 2022-10-28 16:28
 * @Description: 采购模块API
 * @Version: 1.0
 */
@Getter
public enum PurchaseAPI {
    CHANGE_PURCHASE_USER("/purchase/purchase/changePurchaseUser", "修改采购员"),
    SUBMIT_ORDER("/purchase/purchase/submitOrder", "提交下单"),
    PURCHASE_LIST("/purchase/purchase/list", "采购单列表"),
    PURCHASE_INFO("/purchase/purchase/info", "采购单详情"),
    HANDE_CREATE_ORDER("/purchase/purchase/handCreateOrder", "手动下单"),
    EDIT_LOGISTC_NUMBER("/purchase/purchase/editLogistcNumbers", "编辑物流信息"),
    PUSH_STALL_APPLET("/purchase/purchase/pushStallApplet", "推送小程序"),
    editOnline_Purchase_Order("/purchase/purchase/editOnlinePurchaseOrder", "编辑采购单信息"),
    editOnline_Purchase_Item("/purchase/purchase/editOnlinePurchaseItem", "编辑采购单商品信息"),
    editStall_Purchase_Item("/purchase/purchase/editStallPurchaseItem","编辑档口采购单商品信息"),
    complete_Online_Purchase_Order("/purchase/purchase/completeOnlinePurchaseOrder", "采购确认提交"),
    PURCHASE_MALL_LIST("/goods/purchase/mall/purchase/mall/list", "档口市场查询"),
    PAGE_TAKE_ORDER("/purchase/take/order/pageTakeOrder", "档口拿货列表"),
    TAKE_ORDERS("/purchase/take/order/takeOrders", "档口接单"),
    SAVE_TAKE_RECORD("/purchase/take/order/saveTakeRecord", "档口保存拿货记录"),
    PAGE_PURCHASE("/purchase/oem/purchase/pagePurchase",	"OEM采购列表查询"),
    EDIT_ITEM_INFO("/purchase/oem/purchase/editItemInfo",	"OEM采购编辑商品信息"),
    EDIT_ITEM_PURCHASE_ORDER("/purchase/oem/purchase/editOemPurchaseOrder",	"OEM采购单编辑采购信息"),
    ACCOUNT_QUERY("/settlement/reconciliation/management/pay/account/query",	"OEM获取支付账户" ),
    ADD_PURCHASE_EXPRESS_NO("/purchase/oem/purchase/addPurchaseExpressNo",	"OEM采购添加物流单号"),
    APPLY_ABNORMAL("/purchase/purchase/abnormal/applyAbnormal",	"成品采购提交异常"),
    QUERY_ORDER("/purchase/purchase/abnormal/queryOrder",	"成品采购异常单查询"),
    ABNORMAL_INFO("/purchase/purchase/abnormal/info",	"采购异常单详情"),
    HANDLE_ABNORMAL("/purchase/purchase/abnormal/handleAbnormal",	"采购异常处理选择是否重拍"),
    SUPPLIER_REFUND("/purchase/purchase/abnormal/applySupplierRefundForOnlyRefundAndReturn",	"采购异常处理供应商退款"),
    SUPPLIER_REFUND_RECHANGE("/purchase/purchase/abnormal/applySupplierRefund",	"采购异常处理供应商同意退款，对账信息提交"),
    SUPPLIER_REFUND_ALL("/purchase/purchase/abnormal/commitWmsAddressReqDTO",	"采购异常退货退款，提交退货地址"),
    ALLOTE_ORDER("/purchase/purchase/separateOrder",	"指定订单分单接口"),
    MANUAL_CALL_BACK("/purchase/purchase/abnormal/manualReconciliationCallback",	"结算手动对账"),
    SUPPLIER_MANAGER("/goods/supplier/manage/query", "供应商管理"),

    PURCHASE_MOCK_CREATE_OREDER("/automation/purchase_order_create", "mock采购单下单"),
    PURCHASE_MOCK_NEGOTIATED("/automation/mock/negotiated", "mock采购议价"),
    PURCHASE_MOCK_PAY("/automation/mock/pay", "mock采购支付"),
    PURCHASE_MOCK_LOGISTICS("/automation/mock/logistics", "mock采购回填物流"),
    PLACING_ORDER("/automation/placing_order", "mock采购状态"),

    ;
    private final String api;
    private final String desc;

    PurchaseAPI(String api, String desc) {
        this.api = SniffHost.HOST + api;
        this.desc = desc;
    }
}
